Disable SFTP while allowing SSH to remain active.
Enhanced secure mode must be enabled. For information about enabling enhanced secure mode, see Enable Enhanced Secure Mode.
enable
configure terminal
no ssh sftp enable
save config